package com.busi.model;

import java.io.Serializable;
import java.sql.Timestamp;

/**
 * Description:用户夺宝记录
 * 
 * @author jiangrunchao
 * 
 */
public class CompetitionUser extends BaseModel implements Serializable {

	private static final long serialVersionUID = 5645648080044308853L;

	/** 中奖状态 2、已中奖 */
	public static final Integer LUCKY_STATE_OPEN_PRIZE = 2;
	/** 中奖状态 4、未开奖 */
	public static final Integer LUCKY_STATE_NO_LOTTERY = 4;
	/** 中奖状态 5、已下架 */
	public static final Integer LUCKY_STATE_SOLD_OUT = 5;

	/** 支付状态 2、已退款 */
	public static final Integer PAY_STATE_REFUND = 2;

	private String id;// ID,主键
	private String arId;// 夺宝活动记录主键
	private String ciId;// 夺宝方案主键
	private String productId;// 商品ID
	private String goodsName;// 商品名称
	private String userId;// 用户ID
	private String userName;// 用户名
	private String mobileId;// 手机号码
	private String projectId;// 方案编号
	private String smallPic;// 展示图
	private String headImg;// 用户头像，参与用户头像:为了不查询用户表
	private String orderId;// 夺宝订单号
	private String competitionNum;// 夺宝号码 格式#夺宝号码#
	private Integer luckyState;// 中奖状态:1募集中2已中奖3未中奖4未开奖
	private Integer payState;// 支付状态:0支付中 1 支付成功 2 已退款 3支付失败
	private Integer drawNum;// 期数
	private Integer buyNum;// 购买份数
	private Integer amount;// 总金额
	private Timestamp competitionTime;// 夺宝时间
	private String receiveName;// 收货人姓名:中奖后的收货人姓名
	private String receivetel;// 收货电话:中奖后的收货电话
	private String receiveAddress;// 收货地址:中奖后的收货地址
	private Timestamp modTime;// 修改时间:
	private Timestamp inTime;// 入库时间:即创建时间

	private Integer joinernum; // 已参与人数
	private String winnernums; // 中奖号码
	private Integer frequency; // 参与次数
	private Timestamp drawing;// 开奖时间

	private String strComTime;// 夺宝时间 String

	private Double bazaarPrice;// 市场价格
	private String buyDate;// 购买日期
	private String trace;
	private String refundOrderId;// 夺宝退款订单号
	private String payseq;

	private String perpartion;// 商品每份的售价 //积分
	
	private Integer first;//是否是第一次参加夺宝标识  0：不是  1：是

	public Integer getFirst() {
		return first;
	}

	public void setFirst(Integer first) {
		this.first = first;
	}

	/**
	 * @return the id
	 */
	public String getId() {
		return id;
	}

	/**
	 * @return the arId
	 */
	public String getArId() {
		return arId;
	}

	/**
	 * @return the ciId
	 */
	public String getCiId() {
		return ciId;
	}

	/**
	 * @return the productId
	 */
	public String getProductId() {
		return productId;
	}

	/**
	 * @return the goodsName
	 */
	public String getGoodsName() {
		return goodsName;
	}

	/**
	 * @return the userId
	 */
	public String getUserId() {
		return userId;
	}

	/**
	 * @return the userName
	 */
	public String getUserName() {
		return userName;
	}

	/**
	 * @return the mobileId
	 */
	public String getMobileId() {
		return mobileId;
	}

	/**
	 * @return the projectId
	 */
	public String getProjectId() {
		return projectId;
	}

	/**
	 * @return the smallPic
	 */
	public String getSmallPic() {
		return smallPic;
	}

	/**
	 * @return the headImg
	 */
	public String getHeadImg() {
		return headImg;
	}

	/**
	 * @return the orderId
	 */
	public String getOrderId() {
		return orderId;
	}

	/**
	 * @return the competitionNum
	 */
	public String getCompetitionNum() {
		return competitionNum;
	}

	/**
	 * @return the luckyState
	 */
	public Integer getLuckyState() {
		return luckyState;
	}

	/**
	 * @return the payState
	 */
	public Integer getPayState() {
		return payState;
	}

	/**
	 * @return the drawNum
	 */
	public Integer getDrawNum() {
		return drawNum;
	}

	/**
	 * @return the buyNum
	 */
	public Integer getBuyNum() {
		return buyNum;
	}

	/**
	 * @return the amount
	 */
	public Integer getAmount() {
		return amount;
	}

	/**
	 * @return the competitionTime
	 */
	public Timestamp getCompetitionTime() {
		return competitionTime;
	}

	/**
	 * @return the receiveName
	 */
	public String getReceiveName() {
		return receiveName;
	}

	/**
	 * @return the receivetel
	 */
	public String getReceivetel() {
		return receivetel;
	}

	/**
	 * @return the receiveAddress
	 */
	public String getReceiveAddress() {
		return receiveAddress;
	}

	/**
	 * @return the modTime
	 */
	public Timestamp getModTime() {
		return modTime;
	}

	/**
	 * @return the inTime
	 */
	public Timestamp getInTime() {
		return inTime;
	}

	/**
	 * @return the joinernum
	 */
	public Integer getJoinernum() {
		return joinernum;
	}

	/**
	 * @return the winnernums
	 */
	public String getWinnernums() {
		return winnernums;
	}

	/**
	 * @return the frequency
	 */
	public Integer getFrequency() {
		return frequency;
	}

	/**
	 * @return the drawing
	 */
	public Timestamp getDrawing() {
		return drawing;
	}

	/**
	 * @return the strComTime
	 */
	public String getStrComTime() {
		return strComTime;
	}

	/**
	 * @return the bazaarPrice
	 */
	public Double getBazaarPrice() {
		return bazaarPrice;
	}

	/**
	 * @return the perpartion
	 */
	public String getPerpartion() {
		return perpartion;
	}

	/**
	 * 设置id
	 * 
	 * @param id
	 *            id
	 */
	public void setId(String id) {
		this.id = id;
	}

	/**
	 * 设置arId
	 * 
	 * @param arId
	 *            arId
	 */
	public void setArId(String arId) {
		this.arId = arId;
	}

	/**
	 * 设置ciId
	 * 
	 * @param ciId
	 *            ciId
	 */
	public void setCiId(String ciId) {
		this.ciId = ciId;
	}

	/**
	 * 设置productId
	 * 
	 * @param productId
	 *            productId
	 */
	public void setProductId(String productId) {
		this.productId = productId;
	}

	/**
	 * 设置goodsName
	 * 
	 * @param goodsName
	 *            goodsName
	 */
	public void setGoodsName(String goodsName) {
		this.goodsName = goodsName;
	}

	/**
	 * 设置userId
	 * 
	 * @param userId
	 *            userId
	 */
	public void setUserId(String userId) {
		this.userId = userId;
	}

	/**
	 * 设置userName
	 * 
	 * @param userName
	 *            userName
	 */
	public void setUserName(String userName) {
		this.userName = userName;
	}

	/**
	 * 设置mobileId
	 * 
	 * @param mobileId
	 *            mobileId
	 */
	public void setMobileId(String mobileId) {
		this.mobileId = mobileId;
	}

	/**
	 * 设置projectId
	 * 
	 * @param projectId
	 *            projectId
	 */
	public void setProjectId(String projectId) {
		this.projectId = projectId;
	}

	/**
	 * 设置smallPic
	 * 
	 * @param smallPic
	 *            smallPic
	 */
	public void setSmallPic(String smallPic) {
		this.smallPic = smallPic;
	}

	/**
	 * 设置headImg
	 * 
	 * @param headImg
	 *            headImg
	 */
	public void setHeadImg(String headImg) {
		this.headImg = headImg;
	}

	/**
	 * 设置orderId
	 * 
	 * @param orderId
	 *            orderId
	 */
	public void setOrderId(String orderId) {
		this.orderId = orderId;
	}

	/**
	 * 设置competitionNum
	 * 
	 * @param competitionNum
	 *            competitionNum
	 */
	public void setCompetitionNum(String competitionNum) {
		this.competitionNum = competitionNum;
	}

	/**
	 * 设置luckyState
	 * 
	 * @param luckyState
	 *            luckyState
	 */
	public void setLuckyState(Integer luckyState) {
		this.luckyState = luckyState;
	}

	/**
	 * 设置payState
	 * 
	 * @param payState
	 *            payState
	 */
	public void setPayState(Integer payState) {
		this.payState = payState;
	}

	/**
	 * 设置drawNum
	 * 
	 * @param drawNum
	 *            drawNum
	 */
	public void setDrawNum(Integer drawNum) {
		this.drawNum = drawNum;
	}

	/**
	 * 设置buyNum
	 * 
	 * @param buyNum
	 *            buyNum
	 */
	public void setBuyNum(Integer buyNum) {
		this.buyNum = buyNum;
	}

	/**
	 * 设置amount
	 * 
	 * @param amount
	 *            amount
	 */
	public void setAmount(Integer amount) {
		this.amount = amount;
	}

	/**
	 * 设置competitionTime
	 * 
	 * @param competitionTime
	 *            competitionTime
	 */
	public void setCompetitionTime(Timestamp competitionTime) {
		this.competitionTime = competitionTime;
	}

	/**
	 * 设置receiveName
	 * 
	 * @param receiveName
	 *            receiveName
	 */
	public void setReceiveName(String receiveName) {
		this.receiveName = receiveName;
	}

	/**
	 * 设置receivetel
	 * 
	 * @param receivetel
	 *            receivetel
	 */
	public void setReceivetel(String receivetel) {
		this.receivetel = receivetel;
	}

	/**
	 * 设置receiveAddress
	 * 
	 * @param receiveAddress
	 *            receiveAddress
	 */
	public void setReceiveAddress(String receiveAddress) {
		this.receiveAddress = receiveAddress;
	}

	/**
	 * 设置modTime
	 * 
	 * @param modTime
	 *            modTime
	 */
	public void setModTime(Timestamp modTime) {
		this.modTime = modTime;
	}

	/**
	 * 设置inTime
	 * 
	 * @param inTime
	 *            inTime
	 */
	public void setInTime(Timestamp inTime) {
		this.inTime = inTime;
	}

	/**
	 * 设置joinernum
	 * 
	 * @param joinernum
	 *            joinernum
	 */
	public void setJoinernum(Integer joinernum) {
		this.joinernum = joinernum;
	}

	/**
	 * 设置winnernums
	 * 
	 * @param winnernums
	 *            winnernums
	 */
	public void setWinnernums(String winnernums) {
		this.winnernums = winnernums;
	}

	/**
	 * 设置frequency
	 * 
	 * @param frequency
	 *            frequency
	 */
	public void setFrequency(Integer frequency) {
		this.frequency = frequency;
	}

	/**
	 * 设置drawing
	 * 
	 * @param drawing
	 *            drawing
	 */
	public void setDrawing(Timestamp drawing) {
		this.drawing = drawing;
	}

	/**
	 * 设置strComTime
	 * 
	 * @param strComTime
	 *            strComTime
	 */
	public void setStrComTime(String strComTime) {
		this.strComTime = strComTime;
	}

	/**
	 * 设置bazaarPrice
	 * 
	 * @param bazaarPrice
	 *            bazaarPrice
	 */
	public void setBazaarPrice(Double bazaarPrice) {
		this.bazaarPrice = bazaarPrice;
	}

	public String getBuyDate() {
		return buyDate;
	}

	public void setBuyDate(String buyDate) {
		this.buyDate = buyDate;
	}

	public String getTrace() {
		return trace;
	}

	public void setTrace(String trace) {
		this.trace = trace;
	}

	public String getPayseq() {
		return payseq;
	}

	public void setPayseq(String payseq) {
		this.payseq = payseq;
	}

	/**
	 * 设置perpartion
	 * 
	 * @param perpartion
	 *            perpartion
	 */
	public void setPerpartion(String perpartion) {
		this.perpartion = perpartion;
	}

	@Override
	public String toString() {
		return "CompetitionUser [id=" + id + ", arId=" + arId + ", ciId=" + ciId + ", productId=" + productId
				+ ", goodsName=" + goodsName + ", userId=" + userId + ", userName=" + userName + ", mobileId="
				+ mobileId + ", projectId=" + projectId + ", smallPic=" + smallPic + ", headImg=" + headImg
				+ ", orderId=" + orderId + ", competitionNum=" + competitionNum + ", luckyState=" + luckyState
				+ ", payState=" + payState + ", drawNum=" + drawNum + ", buyNum=" + buyNum + ", amount=" + amount
				+ ", competitionTime=" + competitionTime + ", receiveName=" + receiveName + ", receivetel=" + receivetel
				+ ", receiveAddress=" + receiveAddress + ", modTime=" + modTime + ", inTime=" + inTime + ", joinernum="
				+ joinernum + ", winnernums=" + winnernums + ", frequency=" + frequency + ", drawing=" + drawing
				+ ", strComTime=" + strComTime + ", bazaarPrice=" + bazaarPrice + ", buyDate=" + buyDate + ", trace="
				+ trace + ", refundOrderId=" + refundOrderId + ", payseq=" + payseq + ", perpartion=" + perpartion
				+ ", first=" + first + "]";
	}

	public String getRefundOrderId() {
		return refundOrderId;
	}

	public void setRefundOrderId(String refundOrderId) {
		this.refundOrderId = refundOrderId;
	}

}
